#include "Node.h"
#include <iostream>


template <class T>
void Node<T>::InitStack(){
     Node<T> *head;
     head = NULL;
}

template <class T>
void Node<T>::Put(T p){
     Node<T> *head;
     Node<T> *el= new Node<T>;
     el->Data = p;
     el->next = head;
     head = el;
}

template <class T>
void Node<T>::Get(){
    Node<T> *head;
    if (head == NULL){
       printf("Empty stack!\n");
    }else{
       Node<T> *pnt = head;
       head = pnt->next;
       T temp = pnt->Data;
      temp.Show();
    }
}
